package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.DeviceCategoryAdjustParameter;
import com.zhijian.medical.entity.vo.request.DeviceCategoryAdjustParameterSearchVo;
import com.zhijian.medical.entity.vo.response.DeviceCategoryAdjustParameterVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 设备品类校准参数 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-01-17 15:45:16
 */
public interface DeviceCategoryAdjustParameterService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    DeviceCategoryAdjustParameter selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    DeviceCategoryAdjustParameterVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 根据设备品类id进行删除
     *
     * @param categoryId
     */
    void deleteByCategoryId(Long categoryId);

    /**
     * 新增
     *
     * @param deviceCategoryAdjustParameter
     * @return
     */
    Long insert(DeviceCategoryAdjustParameter deviceCategoryAdjustParameter);

    /**
     * 更改
     *
     * @param deviceCategoryAdjustParameter
     * @return
     */
    boolean update(DeviceCategoryAdjustParameter deviceCategoryAdjustParameter);

    /**
     * 总数
     *
     * @param deviceCategoryAdjustParameterSearchVo
     * @return
     */
    Integer count(DeviceCategoryAdjustParameterSearchVo deviceCategoryAdjustParameterSearchVo);

    /**
     * 列表
     *
     * @param deviceCategoryAdjustParameterSearchVo
     * @return
     */
    List<DeviceCategoryAdjustParameterVo> selectList(DeviceCategoryAdjustParameterSearchVo deviceCategoryAdjustParameterSearchVo);

    /**
     * 分页查询
     *
     * @param deviceCategoryAdjustParameterSearchVo
     * @return
     */
    Page<DeviceCategoryAdjustParameterVo> selectPage(DeviceCategoryAdjustParameterSearchVo deviceCategoryAdjustParameterSearchVo);

    /**
     * 根据设备id查询列表
     *
     * @param deviceId
     * @return
     */
    List<DeviceCategoryAdjustParameterVo> selectByDeviceId(Long deviceId);

    /**
     * 保存全部
     *
     * @param deviceCategoryAdjustParameters
     * @return
     */
    boolean saveAll(List<DeviceCategoryAdjustParameter> deviceCategoryAdjustParameters);
}